﻿<%@ Page Language="VB" MasterPageFile="~/Admin/ContactAdmin.master" AutoEventWireup="false"
    CodeFile="ManageContactRequests.aspx.vb" Inherits="Admin_ManageContactRequests"
    Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ListView runat="server" ID="lvContactRequests" DataKeyNames="ContactId" EnableViewState="false">
        <LayoutTemplate>
            <table cellpadding="0" cellspacing="0" border="0">
                <thead>
                    <tr>
                        <td>
                            Name
                        </td>
                        <td>
                            Date
                        </td>
                        <td>
                            View
                        </td>
                        <td>
                            Un/Read
                        </td>
                        <td>
                            Delete
                        </td>
                    </tr>
                    <tr>
                    </tr>
                </thead>
                <tbody>
                    <tr id="itemPlaceholder" runat="server">
                    </tr>
                </tbody>
                <tfoot>
                    <tr>
                        <td colspan="5">
                            <div class="pager">
                                <asp:DataPager ID="pagerBottom" runat="server" PageSize="15" PagedControlID="lvContactRequests">
                                    <Fields>
                                        <asp:NextPreviousPagerField ButtonCssClass="command" FirstPageText="«" PreviousPageText="‹"
                                            RenderDisabledButtonsAsLabels="true" ShowFirstPageButton="true" ShowPreviousPageButton="true"
                                            ShowLastPageButton="false" ShowNextPageButton="false" />
                                        <asp:NumericPagerField ButtonCount="7" NumericButtonCssClass="command" CurrentPageLabelCssClass="current"
                                            NextPreviousButtonCssClass="command" />
                                        <asp:NextPreviousPagerField ButtonCssClass="command" LastPageText="»" NextPageText="›"
                                            RenderDisabledButtonsAsLabels="true" ShowFirstPageButton="false" ShowPreviousPageButton="false"
                                            ShowLastPageButton="true" ShowNextPageButton="true" />
                                    </Fields>
                                </asp:DataPager>
                            </div>
                        </td>
                    </tr>
                </tfoot>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr id="tr<%#Eval("ContactId")%>" ondblclick="ShowContact(tr<%#Eval("ContactId")%>);">
                <td>
                    <%#Eval("Name")%>
                </td>
                <td>
                    <%#Eval("DateAdded")%>
                </td>
                <td>
                    View
                </td>
                <td>
                    Un/Read
                </td>
                <td>
                    Delete
                </td>
            </tr>
        </ItemTemplate>
        <EmptyDataTemplate>
            <tr>
                <td colspan="5">
                    <p>
                        Sorry there are no Contact Requests available at this time.</p>
                </td>
            </tr>
        </EmptyDataTemplate>
    </asp:ListView>
</asp:Content>
